package com.welike.shibo.eneity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

/**
 * Created by fangyu on 2019-08-18.
 */
@Data
@TableName(value = "msg")
public class Msg {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 消息类型
     */
    @TableField(value = "msg_type")
    private Integer msgType;


    /**
     * 消息标题
     */
    @TableField(value = "msg_title")
    private String msgTitle;


    /**
     * 消息内容
     */
    @TableField(value = "msg_content")
    private String msgContent;

    /**
     * 收到人id
     */
    @TableField(value = "user_id")
    private String userId;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    public static final String COL_ID = "id";

    public static final String COL_MSG_TYPE = "msg_type";

    public static final String COL_MSG_TITLE = "msg_title";

    public static final String COL_MSG_CONTENT = "msg_content";

    public static final String COL_USER_ID = "user_id";

    public static final String COL_CREATE_TIME = "create_time";
}